<?php


namespace App\Http\Controllers\Admin;


use App\Http\Controllers\Controller;
use App\Models\Setting;
use App\Utils\ResponseUtil;

class GameSettingController extends Controller
{
    public function paginate()
    {
        return ResponseUtil::error("功能废弃");
    }

    public function detail($id)
    {
        $data = Setting::query()->find($id);
        return ResponseUtil::success($data);
    }

    public function edit($id)
    {
        $find = Setting::query()->find($id);
        $find->val = request()->get('val');
        $find->save();
        return ResponseUtil::success();
    }

}
